﻿<?xml version="1.0" encoding="utf-8" ?>
<board name="MainBoard">
  <using namespace="Microsoft.Msagl.Drawing"/>
  <using namespace="data.contracts"/>
  <using namespace="data.contracts.messages"/>
  <using namespace="ebcpatterns.flow"/>
  <using namespace="modelbuilder"/>
  
  <external name="ModelBuilder"/>

  <wire from="this.Run" type="string[]" to="Validate_commandline_params.Process"/>
  <wire from="Validate_commandline_params.VisualizeProject" type="string[]" to="Collect_board_definitions_from_project.Process"/>
  <wire from="Collect_board_definitions_from_project.Filenames" type="string[]" to="(IMap{string[], BuildBoardsMessage})Mapper.Input"/>
  <wire from="(IMap{string[], BuildBoardsMessage})Mapper.Output" type="BuildBoardsMessage" to="(ModelBuilder)ModelBuilder.Process"/>
  <wire from="(ModelBuilder)ModelBuilder.Result" type="Board*" to="Render_boards.Process"/>
  <wire from="Render_boards.Graphs" type="Graph[]" to="Frontend.DisplayGraphs"/>

  <wire from="Validate_commandline_params.VisualizeBoard" type="string[]" to="(IMap{string[], BuildBoardsMessage})Mapper.Input"/>
</board>